/*                                  ATELIER                                   */

/* %%LICENSE_TAG%%                                                            */
package edu.gmu.view.cube;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

/**
 * The ControlPanel sets the various parameters for a 3D-coordinate system.
 * @author  James H. Pope
 * @version $Revision:$ $Date:$
 */
public class ControlPanel extends JPanel
{
    // The object that is interested in the values we produce
    private ControlModel controlModel = null;

    private JPanel panelRotation  = null;
    private JPanel panelTranslate = null;
    private JPanel panelScaling   = null;
    
    /**
     * Creates a new instance of ControlPanel with specified values.
     * @param controlModel
     */
    public ControlPanel( ControlModel pControlModel )
    {
        this.controlModel = pControlModel;
        
        this.panelRotation  = new PanelRotation(  controlModel);
        this.panelTranslate = new PanelTranslate( controlModel);
        this.panelScaling   = new PanelScaling   (controlModel);
        
        BoxLayout mainLayout = new BoxLayout( this, BoxLayout.Y_AXIS );
        this.setLayout( mainLayout );
        this.add( panelRotation );
        this.add( panelTranslate );
        this.add( panelScaling );
    }

}

/*                                  ATELIER                                   */